<!DOCTYPE html>
<html>

<head>
    <meta charset=utf-8>
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
</head>

<body>
    <div>11-repat</div>
    <script>
      function reprat(s,n){
        return (new Array(n+1)).join(s)
      }

    //   function repeat(s,n){
    //     return (n>0)?s.concat(repeat(s,--n)):''
    //   }
      </script>
</body>

</html>